﻿using B.S.BasicData.Api.Read.DTOs;
using B.S.BasicData.ErrorCode;
using MediatR;

namespace B.S.BasicData.Api.Read.Application.Command.GridPerson
{
    /// <summary>
    /// 查询网格人员分页列表的请求命令
    /// </summary>
    public class GetGridPersonCommand:IRequest<ApiPaging<AccountListDTO>>
    {
        /// <summary>
        /// 根据真实姓名查询
        /// </summary>
        public string? RealName { get; set; }
        /// <summary>
        /// 根据部门id精确查询
        /// </summary>
        public long? DepartmentId { get; set; }
        /// <summary>
        /// 当前页码
        /// </summary>
        public int PageIndex { get; set; } = 1;
        /// <summary>
        /// 页容量
        /// </summary>
        public int PageSize { get; set; } = 2;
    }
}
